package common

import (
	"context"
	commonRepo "git.mycaigou.com/gfyx/micro-gfyx-api/infrastructure/repository/common"
	pb "git.mycaigou.com/gfyx/micro-gfyx-api/proto/micro_gfyx_user_service_proto/micro-gfyx-user-service"
)

type miniProgramService struct {
	miniRepo commonRepo.MiniProgramRepositoryIface
}

// NewMiniProgramService 创建构造函数
func NewMiniProgramService(miniRepo commonRepo.MiniProgramRepositoryIface) MiniProgramServiceIface {
	return &miniProgramService{
		miniRepo: miniRepo,
	}
}

func (s *miniProgramService) GetQrCode(ctx context.Context, request *pb.GetQRCodeRequest) (*pb.GetQRCodeResponse, error) {
	return s.miniRepo.GetQrCode(ctx, request)
}
